package PTA2.ti61;

import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n=scanner.nextInt();
        int m=scanner.nextInt();
        for (int i=0;i<n;i++){
            for (int j=0;j<m;j++){
                char c=(char)('A'+Math.abs(i-j));
                System.out.print(c);
            }
            System.out.println();
        }
        scanner.close();

    }
}
